﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
using DAO;
using DTO;
namespace BUS
{
   public class HoaDonBUS
    {
       public DataTable LayThongTinHoaDonTuPhieuThue(int maPhieu)
       {
           HoaDonDAO dao = new HoaDonDAO();
           return dao.LayThongTinHoaDonTuMaPhieuDAO(maPhieu);
       }
       public int ThemHoaDon(HoaDonDTO dto)
       {
           HoaDonDAO dao = new HoaDonDAO();
           return dao.ThemHoaDon(dto);
       }
       public int LayMaxHoaDon()
       {
           HoaDonDAO dao = new HoaDonDAO();
           return dao.LayMaxHoadon();
       }
    }
}
